home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / dev / disk.man < prev    next >
Encoding:
Text File  |  1989-07-02  |  2.0 KB  |  50 lines

  1. '\" Copyright 1989 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/man/dev/RCS/disk.man,v 1.1 89/07/02 13:29:17 mendel Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS DISK dev
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. disk \- Device used to read and write disk sectors
  17. .BE
  18. .SH DESCRIPTION
  19. .PP
  20. Disk devices are used to read and write sectors on magnetic disk devices.
  21. Each \fBread\fR or \fBwrite\fR kernel call
  22. on a disk device may access one or more sectors on the device.
  23. The buffer specified to the kernel call must be 
  24. a multiple of the disk's sector size, normally 512 bytes.
  25. Reading or writing disk sectors advances the file pointer to the
  26. sector after the last one accessed.  
  27. The \fBlseek\fR kernel call may be used to position the file pointer to
  28. any sector.
  29. .SH PARTITIONS
  30. .PP
  31. A disk may be divided into eight possibly overlapping ranges of 
  32. disk sectors called partitions.  
  33. The partitions are defined by a structure called a disk label which
  34. resides in the first sector of the disk.  The label structure
  35. is defined in the include file <kernel/devDiskLabel.h>. 
  36. Traditionally, partitions have been named by the letters \fBa\fR through 
  37. \fBh\fR.
  38. Partition \fBc\fR is normally used to access the entire disk.
  39. .SH "UNIT NUMBERS"
  40. .PP
  41. For disk devices, the least significant four bits of the unit number
  42. are used to select the partition.  
  43. A unit number of zero implies partition \fBa\fR while seven implies partition
  44. \fBh\fR.
  45. The entire disk can be accessed using a unit number of eight regardless of
  46. the partitioning defined by the label. 
  47. Unit number eight is useful for writing a label to an unlabeled disk.
  48. .SH KEYWORDS
  49. disk, partition, label
  50.